
let Sequelize = require("sequelize")

function getConn(mysql) {
	const sequelize = new Sequelize(mysql.database, mysql.user, mysql.password, {
		dialect: "mysql",
		port: mysql.port,
		host: mysql.host,
		pool: { // 如果要覆盖用于读取池的选项，可以在此处进行
			max: 20,
			idle: 30000
		},
		logging: true
	})
	return sequelize
}
let sequelize = getConn({port: 3306, database: "mServer", user: "root", password: "root"})
let app = {Sequelize, model: sequelize}
let cat = require("../app/model/cat/catUser")(app)
console.log(Object.keys(cat))